Part Number Hot Search : 
TC125 203005G ENA1379 4412H DTA123E U21008 BU7233SF DT74FCT1
Product Description
Full Text Search
 

To Download MC33389CDH Datasheet File

  If you can't view the Datasheet, Please click here to try to view without PDF Reader .  
 
 


  Datasheet File OCR Text:
 MOTOROLA Freescale Semiconductor, Inc.
Semiconductor Technical Data
Order Number: MC33389/D Rev 3.5, March 17th, 03
Advance Information
System Basis Chip with Low Speed Fault Tolerant CAN
The MC33389 is a monolithic integrated circuit combining many functions frequently used by automotive ECUs. It incorporates a low speed fault tolerant CAN transceiver. * Dual Low Drop Voltage Regulators, with Respectively 100mA and 200mA Current Capabilities, Current Limitation and Over Temperature Detection with Prewarning * 5V Output Voltage for V1 Regulator * Three Operational Modes (Normal, Standby and Sleep Mode) Separated from the CAN Interface Operating Modes * Low Speed 125kBaud Fault Tolerant CAN Interface, Compatible with MC33388 Standalone Physical Interface * V1 Regulator Monitoring and Reset Function * Three External High Voltage Wake-up Inputs, Associated with V3 Vbat Switch * 100mA Output Current Capability for V3 Vbat Switch Allowing Drive of External Switches or Relays * Low Standby and Sleep Current Consumption * Vbat Monitoring and Vbat Failure Detection Capabilities * DC Operating Voltage up to 27V * 40V Maximum Transient Voltage * Programmable Software Window Watchog and Reset * Wake up Capabilities (CAN Interface, Local Programmable Cyclic Wake up) * Interface with MCU through SPI * Programmable Interupt Function
MC33389
AUTOMOTIVE SBC SYSTEM BASIS CHIP
SILICON MONOLITHIC INTEGRATED CIRCUIT
PIN CONNECTIONS
DH SUFFIX
POWER PACKAGE CASE 979C HSOP-20
TX V1 RX RSTB INTB MISO MOSI SCK CSB L2
1 2 3 4 5 6 7 8 9 10 20 19 18 17 16 15 14 13 12 11
Freescale Semiconductor, Inc...
V3 VBAT RTL V2 CANH GND CANL RTH L0 L1
DW SUFFIX
PLASTIC PACKAGE CASE 751F SO-28
TX V1 RX RSTB INTB GND GND GND GND MISO MOSI SCK CSB L2
1 2 3 4 5 6 7 8 9 10 11 12 13 14 28 27 26 25 24 23 22 21 20 19 18 17 16 15
Simplified Block Diagram
VBAT
(+12V)
Dual Voltage Regulator
Voltage control 5V Bat fail detect VCC monitor 5V VBAT switch supply Mode control
V2
max 200mA max 110mA
V1
V3 VBAT RTL V2 CANH GND GND GND GND CANL RTH NC L0 L1
I3 max. 100mA
ORDERING INFORMATION
V3
(Switch supply)
Interrupt control Reset control Watchdog & oscillator
INT Reset MOSI SCK MISO CSB
Device and version
Operating Temperature Range
Package
MC33389ADW (1) TA = -40 to 125C MC33389ADH (1)
SO-28
TA = -40 to 125C HSOP20
SO-28
MC33389CDW (2) TA = -40 to 125C
SPI Interface
MC33389CDH (2) TA = -40 to 125C HSOP20 MC33389DDW (3) TA = -40 to 125C
SO-28
L0
Wake-up L1
inputs
Programmable wake-up inputs
Gnd
L2 Fault tolerant CAN transceiver
(1) Version A: If device remains in reset greater than 100ms due to V1 undervoltage, device switches to sleep mode to minimise current consumption. Wake-up configuration active. (2) Version C: In V1 undervoltage condition, device remains in permanent reset state until V1 returns to nominal conditions. V1 protected by overcurrent and over temperature functions. (3) Version D: In V1 undervoltage condition, device remains in permanent reset state until V1 returns to nominal conditions. V1 protected by overcurrent and over temperature functions. Change of undervoltage reset threshold. Refer to electrical parameter table, V1 PIn 5V.
CAN H
R1 R2
Rth Rtl
TX RX
CAN L
This document contains information on a new product under development.www.freescale.com Go to: Motorola reserves the right to change or discontinue this product without notice. (c) Motorola, Inc., 2002. All rights reserved.
For More Information On This Product,
MAXIMUM RATINGS Description DC Voltage at Pin Vbat Transient Voltage at Pin Vbat DC Voltage at Pins CANH CANL Transient Voltage at Pins CANH CANL
Freescale Semiconductor, Inc.
Symbol Vbat Min -0.3 Typ Max 27 40 -20 -40 27 40 Unit V V V V 00, t<500ms With 100 Termination Resistors. Coupled Through 1nF (note1) t<500ms (Load Dump) Test Conditions
MC33389
Coupled Transient Voltage at Pins CANH CANL DC Voltage at Pins V1 V2 DC Current at output pins: RX, MISO, RSTB, INTB DC Voltage at input pins TX, MOSI, SCLK, CSB, RSTB DC Voltage at Pins L0, L1, L2 Current at Pins L0, L1, L2 Transient Current at Pin V3 DC Voltage at Pins RTH, RTL ESD Voltage on any Pin (HBM 100pF, 1.5K) ESD Voltage on L0, L1, L2, CANH, CANL, Vbat ESD Voltage on any Pin (MM 200pF, 0). Junction Temperature Junction Temperature Storage Temperature RTH, RTL Termination Resistance Junction to Heatsink Thermal Resistance for HSOP20 Junction to Pin Thermal Resistance for SO28WB Tj Tjt Ts
-100 -0.3 -20 -0.3 -0.3 -15 -30 -0.3 -2 -2 -150 -40 -40 -65 500 3.1 17
100 6 20 6 40
V V mA V V mA
Freescale Semiconductor, Inc...
020 40 2 2 150 150 160 150 16k
mA V kV kV V C C C K/W K/W 33% Power on V1, 66% on V2 (Including CAN), Note 2 Note 2, Note 3
NOTE 1: Pulses 1, 2, 3a, 3b according to ISO7637. NOTE 2: Refer to thermal management in device description section. NOTE 3: pins 6,7,8,9,20,21,22,23 of SO28WB package
MC33389
For More Information On This Product, MOTOROLA Go to: www.freescale.com
2
ELECTRICAL PARAMETERS Vbat=5.5V to 18V, -40< Tj < 150C, unless otherwise specified Parameter Vbat PIN Nominal Vbat Operating Range Functional Vbat Operating Range Vbat Threshold for BatFail Flag Delay for Signalling BatFail Overvoltage Vbat Threshold Delay for Setting BAThigh Flag Supply Current in Sleep Mode BatFail Tfail BAThigh Thigh Isleep1 18 4 5.5 5.5 2 150 20 18 75 18 27 4 400 22 50 125 Symbol Min Typ Max
Freescale Semiconductor, Inc.
Unit Test Conditions
MC33389
V V V s V s A Vbat>BatHigh Forced Wake-up and Cyclic Sense Disabled Vbat=12V,Tj = 25C to150C Forced Wake-up and Cyclic Sense Disabled Vbat=12V, Tj = -40C to 25C Forced Wake-up or Cyclic Sense Enabled. Vbat=12V, Tj = 25C to 150C Forced Wake-up or Cyclic Sense Enabled Vbat12V, Tj -40 to 25C, Forced Wake-up or Cyclic Sense Enabled. Vbat 6V to 16V, Tj -40 to 150C mA mA Normal Mode with I(V1)=I(V2)=0 Bus in Recessive State 0Freescale Semiconductor, Inc...
Supply Current in Sleep Mode
Isleep2
210
A
Supply current in sleep mode
Isleep3
105
155
A
Supply Current in Sleep Mode
Isleep4
250
Supply Current in Sleep Mode Supply Current in Standby Mode Supply Current in Normal Mode V1 PIN 5V Output Voltage Output Voltage Drop Voltage Output Current Limitation V1 Overtemp Shut-off Threshold V1 Pre-warning Temp Threshold Temperature Threholds Difference Reset Threshold on V1 (A and C versions)
Isleep5 Istb2 Inrec 0.5 3.5
300 1 7
V1nom V1 V1drop I1max TV1h TV1l
TV1h-TV1l
4.85 4.8
5 5 0.35
5.15 5.2 0.5 200 190 160 40
V V V mA C C C V
0mA130 160 130 20 4.1
170
Vr1
4.3
4.8
5.5VMC33389
For More Information On This Product, MOTOROLA Go to: www.freescale.com
3
Freescale Semiconductor, Inc.
Parameter Reset Threshold on V1 (D version) Reset Active V1 Range Reset Delay Time Line Regulation Line Regulation Load Regulation Line Ripple Rejection Symbol Vr1 V1r td Min V1-0.4 1 2 -15 -50 -50 30 55 2 10 Typ V1-0.28 Vr1 20 +15 +50 +50 Max V1-0.1 Unit V V s mV mV mV dB 9VMC33389
Freescale Semiconductor, Inc...
Line Transient Response
27
mV
Load Transient Response
400
mV
Load Transient Response Reverse Current From V1 to Vbat and Gnd IRev
16 1
mV mA
NOTE 4: Measured when V1 has dropped 100mV below its nominal value. NOTE 5: This condition does not produce reset.
V2 PIN Output Voltage Drop Voltage Drop Voltage Output Current Limitation Threshold on V2 to Report V2 off Vr2 Delay Time V2 Overtemp Pre-warning Threshold V2 Overtemp Switch-off Threshold Line Regulation Load Regulation Line Ripple Rejection Percentage Difference V2-V1 TV2l TV2h V2nom V2drop V2drop I1max Vr2 220 4.1 20 130 155 -15 -75 30 -3 55 3 4.75 5 0.2 0.05 280 4.55 5.25 0.5 0.15 350 4.75 70 160 185 +15 +75 V V V mA V s C C mV mV dB % V2 Junction Temperature V2 Junction Temperature 9V9V, IV1=20mA, IV2=40mA 0mANOTE 6: Measured when V2 has dropped 100mV below its nominal value.
V3 PIN
MC33389
For More Information On This Product, MOTOROLA Go to: www.freescale.com
4
Freescale Semiconductor, Inc.
Parameter High Level Voltage Drop High Level Voltage Drop V3 Output Current Limitation V3 Leakage Current V3 Overtemp Detection V3 voltage with -30mA (negative current for Relay Switch off) CAN TRANSCEIVER V2 for Forced BusStandby Mode (Fail Safe) CANH, CANL Pins Differential Receiver, Threshold Voltage Differential Receiver, Dominant to Recessive Threshold CANH Recessive Output Voltage CANL Recessive Output Voltage CANH Output Voltage, Dominant CANL Output Voltage, Dominant CANH Output Current Limit CANL Output Current Limit Detection Threshold for Short-circuit to Battery Voltage Detection Threshold for Short-circuit to Battery Voltage CANH Output Current, Failure3 CANL Output Current, Failure4 CANL Wake up Voltage Threshold CANH Wake up Voltage Threshold Wake up Threshold Difference CANH Single Ended Receiver Threshold CANL Single Ended Receiver Threshold CANL Pull up Current VwakeL VwakeH
VwakeL-VwakeH
MC33389
Symbol V3drop V3drop I3lim I3leak TV3 VV3
Min
Typ 0.4
Max 1 1.5
Unit V V mA A C V
Test Conditions IV3=-50mA, 9V100
15
250 15
155 0.3
185 0.5
Freescale Semiconductor, Inc...
Vrc2
3
3.9
4.7
V
-3.2 -3.2 Vcanh Vcanl Vcanh Vcanl Icanh Icanl
VcanhVcanl
-2.5 -2.5 0.2
V V V V V (Bus failures 1, 2, 5) TX=high, R(RTH)<4k TX=high, R(RTL)<4k TX=0V ; BusNormal Mode, Icanh= -40mA TX=0V ; BusNormal Mode, Icanl=40mA (Vcanh=0, TX=0) (Vcanl=14V, TX=0) BusNormal Mode BusStandby Mode BusStandby Mode Vcanh=12V BusStandby Mode, Vcanl=0V, Vbat=12V BusStandby Mode BusStandby Mode
V2-0.2 V2-1.4 1.4 50 50 7.3 Vbat/2+3 5 0 2.5 1.2 0.2 1.5 2.8 45 1.85 3.05 75 2.15 3.4 90 3.3 2 75 95 7.9 100 130 8.9 Vbat/2+5 10 2 3.9 2.7
V mA mA V V A A V V V V V A
Vcanh
Vcanh Vcanl Icanlpu
Failures 4,6,7 Failures 3,8 BusNormal Mode
MC33389
For More Information On This Product, MOTOROLA Go to: www.freescale.com
5
Freescale Semiconductor, Inc.
Parameter CANH Pull Down Current Receiver Differential Input Impedance CANH / CANL Differential Receiver Common Mode Voltage Range RTH, RTL Pins RTL to V2 Switch on Resistance RTL to BAT Switch Series Resistance RTH to Ground Switch on Resistance THERMAL SHUTDOWN Shutdown Temperature AC CHARACTERISTICS CANL and CANH Slew Rates, Rising or Falling Edges, Tx from Recessive to Dominant State CANL and CANH Slew Rates, Rising or Falling Edges, Tx from Dominant to Recessive State Propagation Delay TX to RX Low Propagation Delay TX to RX High Min. Dominant Time for Wake-up on CANL or CANH Failure 3 Detection Time Failure 3 Recovery Time Failure 6 Detection Time Failure 6 Recovery Time Failure 4, 7, 8 Detection Time Failure 4, 7, 8 Recovery Time Failure 3, 4, 7 Detection Time Failure 3, 4, 7 Recovery Time Edge Count Difference Between CANH and CANL for Failures 1, 2, 5 Detection Edge Count Difference Between CANH and CANL for Failures 1, 2, 5 Recovery Tdh Tdl Twake 4 10 10 50 150 0.75 10 0.8 2.5 3 3.5 5 10 V/s Cload=10nF, 133 Termination Resistors Cload=10nF, 133 Termination Resistors Cload=10nF, 133 Termination Resistors Cload=10nF, 133 Termination Resistors BusStandby Mode, Vbat=12V BusNormal Mode BusNormal Mode BusNormal Mode BusNormal Mode BusNormal Mode BusNormal Mode BusStandby Mode, Vbat=12V BusStandby Mode,Vbat=12V BusNormal Mode Tsd 165 C Rrtl Rrtl Rrth 10 8 25 12.5 25 70 20 70 k Iout<-10mA, BusNormal Operating Mode BusStandby Mode Iout<10mA, All Mode Symbol Icanlpd Rdiff Vcom Min 45 100 -8 Typ 75 Max 90 180 8 Unit A k V Test Conditions BusNormal Mode
MC33389
Freescale Semiconductor, Inc...
2
3.5
10
V/s
1.2 2
2 3 40 60 60 400 1000 4 60 8
s s s s s s s ms s ms ms
3
BusNormal Mode
MC33389
For More Information On This Product, MOTOROLA Go to: www.freescale.com
6
Freescale Semiconductor, Inc.
Parameter TX Permanent Dominant Timer Disable Time TX, MOSI, SCK, CSB High Level Input Voltage CSB Threshold for SPI Wake-up CSB Filter Time for SPI Wake-up Low Level Input Voltage High Level Input Current on CSB Low Level Input Current (CSB) TX High Level Input Current TX Low Level Input Current SI, SCK Input Current RX, INTB, MISO High Level Output Voltage Low Level Output Voltage Tristated SO Output Current RSTB Pin High Level Input Voltage Low Level Input Voltage High Level Output current 1 High Level Output current 2 Low Level Output Voltage (I0=1.5mA) Reset Duration after V1High L0, L1, L2 WAKE-UP INPUTS Positive Switching Threshold Negative Switching Threshold Hysteresis Leakage Current 0MC33389
Freescale Semiconductor, Inc...
MC33389
For More Information On This Product, MOTOROLA Go to: www.freescale.com
7
Freescale Semiconductor, Inc.
Parameter SCLK Clock High Time SCLK Clock Low Time Falling Edge of CSB to Rising Edge of SCLK Falling Edge of SCLK to Rising Edge of CSB SI to Falling Edge of SCLK Falling Edge of SCLK to SI SO Rise Time (CL = 220pF) SO Fall Time (CL = 220pF) SI, CSB, SCLK Incoming Signal Rise Time SI, CSB, SCLK Incoming Signal Fall Time Time from Falling Edge of CSB to SO Low Impedance High Impedance Time from Rising Edge of SCLK to SO Data Valid SOFTWARE WATCHDOG TIMINGS
(note 1: software watchdog timing accuracy are based on the running mode oscillator tolerance)
MC33389
Symbol twSCLKH twSCLKL tlead tlead tSISU tSI(hold) trSO tfSO trSI tfSI
Min 175 175 250 250 125 125
Typ
Max
Unit ns ns
Test Conditions
50 50 25 25 25 25 75 75 200 200
ns ns ns ns ns ns ns
Freescale Semiconductor, Inc...
tSO(en) tSO(dis) tvalid 50
200 200 125
ns 0.2 V1 or V2SO 0.8V1 or V2, CL=200pF
Running mode oscillator tolerance Software Watchdog Timing 1 Software Watchdog Timing 2 Software Watchdog Timing 3 Software Watchdog Timing 4 Software Watchdog Timing 5 Software Watchdog Timing 6 Software Watchdog Timing 7 Software Watchdog Timing 8 SWt1 SWt2 SWt3 SWt4 SWt5 SWt6 SWt7 SWt8
-12 4.4 8.8 17.6 28 44.8 65 88 178 5 10 20 32 51 74 100 202
+12 5.6 11.2 22.4 36 58 83 112 226
% ms ms ms ms ms ms ms ms
normal request, normal and standby modes. (Note 1) (Note 1) (Note 1) (Note 1) (Note 1) (Note 1) (Note 1) (Note 1) (Note 1)
FORCED WAKE-UP AND CYCLIC SENSE TIMINGS
(note 2: cyclic sense and forced wake up timing accuracy are based on the sleep mode oscillator tolerance)
Sleep mode oscillator tolerance Cyclic Sense / FWU timing 1 Cyclic Sense / FWU timing 2 Cyclic Sense / FWU timing 3 CYt1 CYt2 CYt3
-30 22.4 44.8 89.6 32 64 128
+30 41.6 83.2 166.4
% ms ms ms
sleep mode (Note 2) sleep mode (Note 2) sleep mode (Note 2) sleep mode (Note 2)
MC33389
For More Information On This Product, MOTOROLA Go to: www.freescale.com
8
Freescale Semiconductor, Inc.
Parameter Cyclic Sense / FWU timing 4 Cyclic Sense / FWU timing 5 Cyclic Sense / FWU timing 6 Cyclic Sense / FWU timing 7 Cyclic Sense / FWU timing 8 GND SHIFT DETECTION
(note 3: no over lap between two adjacent thresholds).
MC33389
Symbol CYt4 CYt5 CYt6 CYt7 CYt8
Min 179 358 717 1434 5734
Typ 256 512 1024 2048 8192
Max 333 665 1331 2662 10650
Unit ms ms ms ms ms
Test Conditions sleep mode (Note 2) sleep mode (Note 2) sleep mode (Note 2) sleep mode (Note 2) sleep mode (Note 2)
Ground Shift Threshold 1 (Note 3) Ground Shift Threshold 2 (Note 3) Ground Shift Threshold 3 (Note 3) Ground Shift Threshold 4 (Note 3)
GS1 GS2 GS3 GS4
-1 -1.5 -2 -2.6
-0.7 -1.2 -1.7 -2.2
-0.3 -0.8 -1.3 -1.7
V V V V
CAN Transceiver Active In Two-wire Operation CAN Transceiver Active In Two-wire Operation CAN Transceiver Active In Two-wire Operation CAN Transceiver Active In Two-wire Operation
Freescale Semiconductor, Inc...
Figure 1. Input Timing Switch Characteristics
CSB
tlead twSCLKH tr tf tlag
SCLK
twSCLKL tSISU SI Don't Care Valid tSI(hold) Don't Care Valid Don't Care
MC33389
For More Information On This Product, MOTOROLA Go to: www.freescale.com
9
MC33389
Freescale Semiconductor, Inc. DEVICE DESCRIPTION
Thermal Management The MC33389 is proposed in two different packages. HSOP20 for high power applications and SO28WB with 8 pins to the leadframe for medium power applications. HSOP20 Package For such a package, the heat flow is mainly vertical and each heat source (dissipating element) can be seen as an independent thermal resistance to the Heatsink. The thermal network can be roughly depicted as: Figure 2. HSOP20 Simplified Thermal Model
V1 power V2 power Can power
SO28WB Package The case(pin) to junction Rth is here represented by only one thermal resistance for the total power since the 3 power sources strongly interact on the silicon for such a package. Figure 3. SO28WB Simplified Thermal Model
Total power
Tj (max 155C)
Rthj/c=20C/W
Tj (max 155C)
Rthj/c=18C/W 9C/W 6.5C/W
Freescale Semiconductor, Inc...
Tcase(pin)
Tcase(heatsink)
Rthc/a
Rthc/a (ECU supplier dependent)
Tambient
Tambient
Example Assuming IV1=100mA at Vbat=16V, IV2=150mA at Vbat=16V (Excluding CAN consumption). ICAN=50mA at Vbat=16V, we have : PV1=1.1W, PV2=1.65W, Pcan=0.55W System assumptions: If Tamb=85C and Rthc/a=18C/W, this gives: Tcase=Tamb+Rth c/a x 3.3W = 85+18 x 3.3=145C and TjV1=TjV2=Tjcan=155C. This example represents the limit for the maximum power dissipations with a HSOP20.
Example Assuming IV1=45mA at Vbat=16V, IV2=45mA at Vbat=16V (Excluding CAN consumption). ICAN=50mA at Vbat=16V, we have : PV1=0.5W, PV2=0.5W, Pcan=0.55W thus Ptotal=1.55W System assumptions: If Tamb=85C and Rthc/a=25C/W, this gives: Tcase=Tamb+Rthc/a x 1.55W=85+25x1.55 =124C and TjV1=124 + 20 x 1.55= 155C. This example represents the limit for the maximum power dissipations with a SO28WB.
MC33389
For More Information On This Product, Go to: www.freescale.com MOTOROLA
10
MC33389
Freescale Semiconductor, Inc. DEVICE DESCRIPTION
Introduction The System Basis Chip is an integrated circuit dedicated to car body applications. It includes three main blocks : - A dual voltage regulator - Reset, watchdog, wake up inputs, cyclic wake up - CAN low speed fault tolerant physical interface Supplies Two low drop regulators and one switch to Vbat are provided to supply the ECU microcontroller or peripherals, with independent control and monitoring through SPI. Voltage Regulator V1 V1 is a 5V, 3% low drop voltage regulator dedicated to the microcontroller supply. It can deliver up to 100mA and is totally protected against short to ground (current limitation) and overtemperature. V1 is active in Normal request, Normal and standby modes. No forward parasitic diode exists from V1 to Vbat. This means that, if Vbat voltage drops below V1, no high current flowing from V1 to Vbat will discharge the capacitor connected to V1. Its stored energy will only be used to supply the microcontroller and gives time to save all relevant data. Undervoltage Reset V1 is monitored for undervoltage (power up, power down) and a reset is provided at RSTB output for 1ms. This ensures proper initialization of the microcontroller at power-on or after supply is lost. On top of that, a flag is set in RSR register readable via the SPI. Overtemperature Protection V1 internal ballast transistor is monitored for overtemperature. Two detection thresholds are provided. A pre-warning threshold at 145C and a shut-off threshold at 175C. Once the first threshold is reached, a flag is set in the OTSR register. A maskable interrupt can be sent to the microcontroller. Once the second threshold is reached, a flag is set in the OTSR register, a maskable interrupt is sent to the microcontroller and V1 is switched off. Once the junction temperature is back to the pre-warning threshold, V1 regulator it will be automatically switched on. Table 4. V1 Control Conditions For V1 On NormalRequest mode (at V1 power on) Normal mode (via SPI) Standby mode (via SPI) V1 below pre-warning temperature threshold During Reset Conditions For V1 Off Sleep mode (via SPI) Shut-off temperature threshold reached No Vbat power supply (cold start) Emergency mode against short to ground (current limitation) and overtemperature. V2 is active in Normal mode. Undervoltage Detection V2 is monitored for undervoltage and a flag is set in the VSSR register. Overtemperature Protection V2 internal ballast transistor is monitored for overtemperature. Two detection thresholds are provided. A pre-warning threshold at 140C and a shut-off threshold at 165C. Once the first threshold is reached, a flag is set in the OTSR register which is readable. A maskable interrupt can be sent to microcontroller. Once the second threshold is reached, a flag is set in the OTSR register, V2 is switched off. It can only be switched on again via the SPI. Table 5. V2 Control Conditions For V2 On Normal mode (via SPI) AND V2 below shut off temperature threshold Conditions For V2 Off Sleep mode, or standby mode or NormalRequest or emergency mode (via SPI) Shut-off temp. threshold reached V1 disabled (for any reason)
Freescale Semiconductor, Inc...
Switch V3 V3 is a 10 switch to Vbat, it can be used to supply external contacts or relays. A great flexibility is given for the different possible ways for its control. It is protected against short to ground (current limitation). Overtemperature Protection V3 output transistor is monitored for overtemperature. Once the threshold is reached, a flag is set in the VSSR register, V3 is switched off. It will be automatically switched on once the junction temperature is back to the pre-warning threshold. Table 6. V3 Control Conditions For V3 On Permanently in Normal mode if configured via SPI Permanently in Standby mode if configured via SPI In sleep mode, during enable time of cyclic sense if configured Conditions For V3 Off Permanently in Normal mode if configured NormalRequest mode Permanently in Standby mode if configured Permanently in sleep mode if configured In sleep mode, during disable time of cyclic sense if configured Overtemp threshold reached V1 disabled (for any reason) V2 over temperature shutdown
Note: current capability of V1, V2 and V3 depends upon the thermal management. Over temperature shutdown might be reached and lead to turn off of V1, V2 and V3 for output current below their max current capability. Voltage Regulator V2 V2 is a 5V low drop voltage regulator dedicated to peripherals supply. It can deliver up to 200mA and is protected
Supply and Vbat Block Vbat Monitoring Vbat is the main power supply coming from the Battery voltage after an external protection diode (for reverse battery).
11
MC33389
For More Information On This Product, Go to: www.freescale.com MOTOROLA
MC33389
Freescale Semiconductor, Inc. DEVICE DESCRIPTION
Vbat is monitored for undervoltage and overvoltage. Vbat Undervoltage Vbat is monitored for undervoltage, if it is below 4V the BatFail flag is set in the VSSR register and a maskable interrupt is sent to the microcontroller. Vbat Overvoltage When Vbat is > 20V, the BatHigh flag is set in the VSSR register. A maskable interrupt is sent to the microcontroller. No specific action is taken to reduce current consumption (to limit power dissipation). This is to let the entire flexibility at the microcontroller for decision. CAN Transceiver The device incorporates a low speed 125kBaud CAN physical interface. Its electrical parameters for the CANL, CANH, Rtl,Rth,RX and TX pins are identical to the MC33388, standalone CAN physical interface. The mode control for the CAN transceiver (normal, Vbat standby, sleep, etc...) are selectable through the MC33389 SPI interface. * Baud Rate up to 125kBit/s * Supports unshielded bus wires * Short-circuit proof to Battery and Ground in 12V powered systems * Supports single-wire transmission modes with Ground offset voltages up to 1.5V * Automatic switching to single wire mode in case of Bus failures * Automatic reset to differential mode if bus failure is removed * Low EMI due to built in slope control and signal symmetry. * Fully integrated receiver filters * Thermally protected * Bus lines protected against Automotive transients. * Low Current BusStandby mode with wake-up capability via the Bus. * An unpowered node does not disturb the bus lines. Figure 7. CAN Simplified Block Diagram
VDD2 VDD2
provides differential transmission capability, but will switch in error condition to single wire transmitter and/or receiver. The rise and fall slopes are limited to reduce RFI. This allows use of an unshielded twisted pair or a parallel pair of wires for the bus. It supports transmission capability on either bus wire if one of the bus wire is corrupted. The logic failure detection automatically selects a suitable transmission mode. In normal operation (no wiring failures), the differential bus state is output to RX. The differential receiver inputs are connected to CANH and CANL through integrated filters. The filtered inputs signals are also used for the single wire receivers. The CANH and CANL receivers have threshold voltages that assure maximum noise margin in single wire modes. In the RXOnly mode, the transmitter is disabled but the receive part of the transceiver remains active. In this mode, RX reports bus and TX activity (RX = TX or Bus dominant). Failure detection and management is the same as BusNormal mode. Failure Detector The failure detector is active in RXTX and RXOnly operation mode and detects the following single bus failures and switches to an appropriate mode. 1- CANH wire interrupted 2- CANL wire interrupted or shorted to 5V 3- CANH short-circuited to battery 4- CANL short-circuited to ground 5- CANH short-circuited to ground 6- CANL short-circuited to battery 7- CANL mutually shorted to CANH 8- CANH to V2 (5V) Note : Shorts-circuit failures are detected for 0 to 50 shorts. The differential receiver (CANH-CANL) threshold is set at 2.8V, this assures a proper reception in the normal operating modes. In case of failures 1, 2 and 5 the on-going message is not destroyed due to noise margin Failures 3 and 6 are detected by comparators respectively connected to CANH and CANL. If the comparator threshold is exceeded for a certain time, the reception is switched to single wire mode. This time is needed to avoid false triggering by external RF fields. Recovery from these failures is detected automatically after a certain time-out (filtering). Failures 4 and 7 initially result in a permanent dominant level at RX. After a time out, the CANL driver and the RTL pin are switched off, only a weak pull up at CANL remains. Reception continues by switching to single wire mode through CANH. When the failures 4 or 7 are removed, the recessive bus levels are restored. If the differential voltage remains below the recessive threshold for a certain time, reception and transmission switch back to the differential mode. If any of the 8 wiring failure occurs, a flag is set in the TESRH and TESRL status registers. 8 different types of errors are distinguished out of these 8 errors and are separately stored in these register (See SPI Register Description Section on page 21). A maskable interrupt is sent to the microcontroller. On error recovery, the corresponding flag is reset after read-out operation. During all single wire transmissions, the EMC performance (both immunity and emission) is worse than in differential mode. Integrated receiver filters suppress any HF noise induced into the bus wires. The cut-off frequency of these filters is a compromise between propagation delay and HF suppression. In single wire mode, low frequency noise can not be distinguished from the wanted signal.
12
Freescale Semiconductor, Inc...
VBAT
TX
Transmitter
Protection
Drivers
CAN CAN
Receiver RX - Fail detect - Receive mode RTL RTH
Termination
CAN Transceiver Register
SPI
CAN transceiver simplified block diagramm
CAN Transceiver Description The CAN transceiver is an interface between CAN protocol controller and the physical bus. It is intended for low speed applications up to 125kBit/s in passenger cars. It
MC33389
For More Information On This Product, Go to: www.freescale.com MOTOROLA
MC33389
Freescale Semiconductor, Inc. DEVICE DESCRIPTION
In the event of a permanent dominant TX state (for more than 2ms) the output drivers are disabled. That assures the operation of the complete system in case of a permanent dominant TX state of one control unit. A defect control unit autonomous go to RXOnly or TermVCC mode. Low Power Modes The transceiver provides a low power modes which can be entered and exit by a SPI command. This is the BusStandby mode with the lowest power consumption (for the transceiver). CANL is biassed to the battery voltage via the RTL output and the pull-up current source on CANL and pulldown current source on CANH are disabled. Wake-up requests are recognized by the transceiver, when a dominant state is detected on either bus lines (Bus wake-up). On a Bus wake-up request the SBC will activate the INTB output or, if it is in sleep mode, switch to NormalRequest mode. This event is stored in the WUISR status register. To prevent false wake-up due to transients or RF fields, wake-up threshold levels have to be maintained for a certain time. In the transceiver low power mode, failure detection circuit remains partly active to prevent increased power consumption in cases of error 3, 4,7 and 8. Power On After the Vbat supply is switched on, the SBC is in NormalRequest mode. The corresponding mode for the CAN transceiver is BusStandby. The CAN transceiver is supplied by V2. As long as V2 is below its undervoltage threshold, the transceiver is forced to BusStandby mode (fail safe property). Protection A current limiting circuit protects the transmitter output stages against short-circuit to positive and negative battery voltage. If the junction temperature exceeds a maximum value, the transmitter output stages are disabled. Because the transmitter is responsible for a part of the power dissipation, this will result in a reduced power dissipation and hence a lower chip temperature. All other parts of the transceiver will remain operating. The CANH and CANL inputs are protected against electrical transients which may occur in an automotive environment. Consequence Of Failure Detections S1 is the switch from RTH to Ground S2 is the switch from RTL to V2 and S3 is the switch from RTL to Vbat For each failure type is given which switch is open and which driver is disabled. Failure 1 : nothing done Failure 2 : nothing done Failure3 : S1 open. Driver CANH is disabled Failure4 : S2 and S3 open. Driver CANL is disabled Failure5 : Nothing done Failure6 : S2 and S3 open. Driver CANL disabled Failure7: S2 and S3 open. Driver CANL disabled Failure8: S1 open. CANH driver disabled CAN Transceiver Modes The CAN transceiver has its own functioning modes: RXTX mode, TermVBAT/TermVCC mode, and RXOnly mode. They are controlled by TCR register. RXTX mode Full transmitting and receiving capabilities are enabled. Full failure detection is enabled. Note: Standard/RXTX and Extended/RXTX are equivalent. RXOnly mode The transmitter is disabled but the receive part of the transceiver remains active. In this mode, RX reports bus and TX activity (RX = TX or Bus dominant). Note: Standard/RXOnly and Extended/RXOnly are equivalent. BusStandby Mode This is the low power mode for the CAN transceiver. The driver and receivers are disabled. Wake-up capability on both bus lines as well as failure 3, 4, 7, 8 detection are enabled. In bus standby mode RTL termination is set to Vbat. Global Power Save Concept The SBC allows to minimize power consumption of the ECU. Several operating modes are available to go to low power consumption when the full activity is not required. Several possibilities are provided to wake-up the ECU. This allows to have peripherals or the microcontroller switched off when no activity on the ECU is required. Two switchable independent supply voltages (V1 and V2) are provided for optimum ECU power management. Generalities The SBC can be operated in four modes: Sleep, Standby, Normal and Emergency mode. After reset, the MC33389 is automatically initialised to a temporally mode, NormalRequest, Waiting for microcontroller configuration. Reset Mode This mode is entered after SBC power up, or if an incorrect Software W/D trigger occurs. The minimum duration for reset mode is 1ms typical, and unless a V1 failure condition, the SBC enters the NormalRequest mode after reset. In case of V1 failure condition leading to V1 low (ex: short to gnd), the SBC goes in reset mode. If V1 is still below reset threshold after 100ms, the behavior depends upon the device version A, C or D: - A version : will enter sleep mode. - C and D versions: will stay in reset mode. NormalRequest Mode This is the default mode after MC33389 reset. V1 is active, V2 and V3 are passive. The SBC is not configured. The default values are set in the registers. The SBC is waiting for configuration data via the SPI. If no SPI data is received 75ms after the Reset is released, then the SBC switches itself to sleep mode. The data the SBC must receive to consider that the microcontroller starts the configuration sequence is the SW timing word (in SWCR register). Once received this SW timing word, the watchdog timer becomes active. Then any other control data can be sent from the microcontroller to SBC. The watchdog is not active in NormalRequest mode before the SW timing word is programmed into the SBC. In this mode, neither V2 nor the CAN transmitter are active.
Freescale Semiconductor, Inc...
MC33389
For More Information On This Product, Go to: www.freescale.com MOTOROLA
13
MC33389
Freescale Semiconductor, Inc. DEVICE DESCRIPTION
SBC MODES Table 8. NormalRequest: V1 active, V2&V3 passive Entering NormalRequest SBC reset just released Leaving NormalRequest When firstly receiving the SW timing word, SBC goes to Normal If time-out without receiving SPI commands (75ms), SBC goes to sleep SBC Normal Mode In this mode, V1 and V2 are active, V3 can be set active or passive via the SPI. Therefore, the whole ECU can be operated. Normal mode is entered by a SWCR register configuration in NormalRequest mode. Table 9. SBC Normal Mode: V1 And V2 Are Active. V3 Is Active Or Passive Entering Normal Mode By SPI command After SWCR register configuration in NormalRequest mode Leaving Normal Mode By SPI command, going to any other mode Watchdog time out, going to NormalRequest after activating Reset V1 undervoltage detection, going to NormalRequest mode after activating Reset SBC Standby Mode In this mode V1 is active, V2 is passive. V3 can be either permanently active or permanently passive. This is a low power mode with V1 active in order to have a fast reaction time in case of any wake-up. For standby mode, the SBC monitors the SW. It means the microcontroller runs and is monitored and must serve a watchdog trigger. Table 10. Standby: V1 Active V2 Passive, V3 Active Or Passive, Watchdog Is Active Entering Standby Leaving Standby If SW time-out going to NormalRequest after microcontroller Reset By SPI command By SPI command going to any other mode V1 undervoltage detection, going to NormalRequest mode after activating Reset External activation of the RSTB pin Figure 13. Typical Behaviour At Power On
SPI SW timing configuration at t<75ms V1 low ECU connected to battery Reset SPI go to Emergency at t<75ms Emergency
SBC Sleep Mode This is a low power consumption mode. V1 and V2 are disabled. V3 can be permanently disabled or cyclically active. Table 11. SBC Sleep Mode: V1 And V2 Are Passive, V3 Passive Or Cyclic. Entering Sleep Mode If SW timing not configured 75ms after entering NormalRequest mode By SPI command For MC33389ADW only: If V1 is below V1 reset for more than 100ms Leaving Sleep Mode CAN wake-up, going to NormalRequest If a wake-up is detected with cyclic sense If a wake-up is detected with wake-up not connected to V3 (permanent sense) Forced wake-up (See Forced Wake up Section) SPI wake-up (See Wake up by SPI Section) Emergency Mode In case the microcontroller detects the ECU or the system is not under control any more, it may decide to switch the SBC to the Emergency mode. V1, V2, V3 will be passive and wakeup are not detected. The only way to leave this mode is to disconnect the ECU from the Battery voltage (BatFail detection). Table 12. SBC Emergency Mode: V1 And V2 V3 Are Passive Entering Emergency Mode By SPI command Leaving Emergency Mode SBC BatFail detection (Disconnection of the Battery voltage)
Freescale Semiconductor, Inc...
Normal
V1 on
(reset NormalRequest released)
No SPI SW timing configuration at t=75ms
Sleep
Vbat > 4V and V1 low for t>100ms for MC33389ADW only (A version)
Note: In Normalrequest, if an SPI command is received before the SW timing configuration (SWCR register), it will not
MC33389
For More Information On This Product, Go to: www.freescale.com MOTOROLA
14
MC33389
Freescale Semiconductor, Inc. DEVICE DESCRIPTION
SBC MODES be taken into account by the SBC (except for the go to Emergency mode). Correspondence between SBC and CAN Transceiver Modes The table here below gives the different possible CAN transceiver modes versus SBC modes. Table 14. CAN Modes Versus SBC Modes When SBC Is In The Following Mode Reset condition NormalRequest Normal Standby Sleep Emergency Normal & V2 off (over load) (note) CAN Transceiver Can Be In Bus Standby mode Bus Standby mode RXTX or RXOnly or BusStandby Bus Standby Bus Standby Bus Standby Bus standby In normal mode the SBC get the watchdog word from the microcontroller via SPI. In case of a trigger time failure (no trigger or trigger outside the enable window) the SBC-reset is switched to active. NormalRequest, Sleep And Emergency Mode Watchdog is not active in this modes.
Freescale Semiconductor, Inc...
Note: In case V2 is turned off either by SPI command (standby mode) or by the SBC itself due to V2 over load condition (V2 short to gnd or V2 over temperature) the CAN is automatically set into the Bus standby mode and does not return to TXRX mode automatically when V2 is back to 5V. The CAN must be re configured to TXRX or RXonly mode after a V2 turn off. Watchdog General The software window watchdog function is used to monitors the microcontroller operation in Normal and in Standby modes. The window watchdog timing is derived from the SBC-clock. The desired watchdog timing must be first transmitted during the SBC configuration, in NormalRequest mode, via SPI to SWCR register. It can also be changed later on. Selectable watchdog timings are 5ms, 10ms, 20ms, 33ms, 50ms, 75ms, 100ms and 200ms. These timings correspond to the full disable window plus full enable window. Figure 15. Window Watchdog Timing
earliest trigger time watchdog trigger 50% SBC watchdog window disabled window nom. trigger period Watchdog Timing SBC-Reset OUT time out enable window 50% latest trigger time
latest reset time
As soon as the watchdog trigger is received in the enable window, the internal counter is reset and start a new disable window. The SBC triggers the watchdog word at CSB low to high transition. Any watchdog trigger outside the enable window leads to SBC reset. In Normal and Standby Modes
MC33389
For More Information On This Product, Go to: www.freescale.com MOTOROLA
15
MC33389
Freescale Semiconductor, Inc. DEVICE DESCRIPTION
WAKE-UP CAPABILITIES Several wake up capabilities are available. Forced Wake-up The forced wake-up is enabled and disabled by SPI in V3R register. It is used in sleep mode to automatically wakeup the system by supplying V1 with proper reset. This correspond to jump into NormalRequest mode. If then, the SBC is not properly configured within 75ms, it switches back to sleep mode till the next wake-up. If both Cyclic sense and forced wake-up are enabled by the SPI in sleep mode, only Cyclic sense will be active. The period of forced wake-up are 32ms, 64ms, 128ms, 256ms, 512ms, 1024ms, 2048ms, 8192ms, chosen by SPI in CYTCR register. Wake-up Inputs (Local Wake-up) / Cyclic Sense SBC provides 3 wake-up inputs to monitor external events such as closing/opening of switches. The wake-up feature is available in Normal, Standby and sleep modes. The switches can be directly connected to Vbat or to V3. The SBC must be properly configured by setting bit WI2V3 in register V3R. In this case, wake-ups are only detected when V3 is On. It can take advantage of V3 cyclic sense feature. If both Cyclic sense and forced wake-up are enabled by the SPI in sleep mode, only Cyclic sense will be active. Options For Wake Input Different conditions for wake-up can be chosen for wakeup input pins (via SPI in WUICR register). No wake-up: No wake-up is detected, whatever occurs on wake-up inputs. High state: if the input pin voltage is above the detection threshold during more than a 20s filter time, a wake-up is detected. A flag is set in the WUISR register. Low state: if the input pin voltage is below the detection threshold during more than a 20s filter time, a wake-up is detected. A flag is set in the WUISR register. Change of state: each change of the wake-up input pin is considered as a wake-up, if it lasts more than a 20s filter time. The first reference state (no wake-up) is the wake-up input state when the SBC is programmed to this option. A flag is set in the WUISR register. Multiple sampling events: when wake-up inputs are used with V3 in cyclic sense in sleep mode. For positive edge sensitivity, 2 samples Low followed by 2 samples High are necessary to validate the wake-up condition. For negative edge sensitivity, 2 samples High followed by 2 samples Low are necessary to validate the wake-up condition. For both edge sensitivity, 2 samples at a given state followed by 2 samples in the opposite state are necessary to validate the wake-up condition. Wake-up Inputs With Cyclic Sense Connecting the external switches to V3 allows power saving since V3 can be programmed to be active, passive or cyclic (cyclic sense). This gives a great flexibility to reduce total power consumption while allowing full wake-up capabilities. Cyclic sense is available only in sleep mode. The period of the Cyclic sense can be chosen out of 8 different timings: 32ms, 64ms, 128ms, 256ms, 512ms, 1024ms, 2048ms, 8192ms programmable via SPI in CYTCR register. Once activated, V3 remains `on' during 400s. The wake-up inputs states are sampled at 300s. Figure 16. V3 Timing
wake-up inputs sample point active V3 passive 300us 400us cyclic sense programmable period
Note: In sleep mode, the Cyclic Sense feature `EXCLUSIVE OR' the forced Wake-up is chosen (not both). Figure 17. Cyclic Sense Timing
Cyclic sense connected to wake-up inputs. Example with wake-up input L1 sensitivity to Low state and timing=80ms
Freescale Semiconductor, Inc...
V3
wake-up switch status
OPEN
CLOSED
sample point (80%)
V(L1)
ed om zo
Read L1 INTB 0 (t0) 1 1 1 80ms (t1) 0 1 1 160ms 0 0 0
setup 300s
read 400s
actual state (read) memory state INTB (wake-up active=0)
Wake Up Inputs With Permanent Sense Wake up detection can also be done on a permanent way in Normal and Standby mode. If the contacts are connected to V3, wake ups are only detected if V3 is on. Wake ups are also detected on a permanent way in sleep mode if the contacts are directly connected to Vbat (if they are connected to V3, only cyclic sense is available in sleep mode). Local Wake-up Consequences In normal or standby modes, the real time state of each wake-up input pin is stored in the readable register WUIRTI. Wake-ups are detected according to the option chosen. A flag is set in the WUISR register. A maskable interrupt is sent via INTB output. In sleep mode, a local wake-up leads to a jump to NormalRequest mode (via proper reset of the microcontroller). A flag is set in the WUISR register. Table 18. SBC Mode Versus Local Wake-up Behaviour SBC Modes NormalRequest Local Wake-up Behaviour No detection
MC33389
For More Information On This Product, Go to: www.freescale.com MOTOROLA
16
MC33389
Freescale Semiconductor, Inc. DEVICE DESCRIPTION
WAKE-UP CAPABILITIES SBC Modes Local Wake-up Behaviour Detection active according to the option. The event is stored in WUISR register.The SBC may activate INTB output. Real time state of each wake-up input pin available in WUIRTI register Detection active according to the option. The event is stored in WUISR register. The SBC switches to NormalRequest mode No detection DEVICE DIFFERENT VERSIONS Detection Principle The gnd shift to detect is selected via the SPI out of 4 different values (-0.7V, -1.2V, -1.7V, -2.2V). At each TX falling edge (end of recessive state) CANH voltage is sensed. If it is detected to be below the selected gnd shift threshold, the bit SHIFT is set at 1 in GSLR register. No filter is implemented. Required filtering for reliable detection should be done by software (e.g. several trials).
Normal and Standby
Sleep Emergency
Freescale Semiconductor, Inc...
Wake-up By SPI In some applications, the microcontroller might be supplied by an external VDD and remains powered in SBC Sleep mode. In this case, a feature is provided which makes possible to wake-up the SBC by SPI activity. After V1 is totally switched off in sleep mode (V1<1.5V), if a falling edge occurs on CSB (crossing 2.5V threshold), a wake-up by SPI is detected, the SBC switches to NormalRequest mode. A flag is set in ISR2. Interrupt Output The INTB output may be activated in the following cases: * Vbat overvoltage (BatHigh) * Vbat undervoltage (BatFail) * High temperature on V1 or V2 * Pre-warning temperature on V1 or V2 * CAN bus failure * SPI error * Local wake-up (can be used for low battery detection) * Bus wake-up All these interrupts are maskable (See Register Description Section). RSTB Input/Output The RSTB (reset) pin is an input/output pin. The typical reset duration from SBC to microcontroller is 1ms. If longer times are required, an external capacitor can be used. SBC provides two RSTB output pull-up currents. A typical 30A pull up when Vreset is below 2.5V and a 300uA pull up when reset voltage is higher than 2.5V. RSTB is also an input for the SBC. It means the MC33389 is forced to NormalRequest mode after RSTB is released by the microcontroller
The MC33389 is proposed in several package versions, and also offers slight differences in term of functionalities. The device version is identified in the device part number by the first letter after the 389 number. The package identification is done by the last two letters of the part number (DW for SO28 wide body, DH for power SO20).
Differences between A, C and D versions: Behavior for V1 low:
A version: If V1 is below reset threshold, device enters reset mode, and if V1 stays below reset threshold for more than 100ms, then the SBC automatically enters sleep mode. This could be the case if V1 is shorted or permanently over loaded, and going to sleep mode would then avoid system over current consumption. This concerns the device reference: MC33389ADW and MC33389ADH. C and D versions: If V1 is below reset threshold, the SBC enters and stays in reset mode (reset low) permanently. This concerns the device reference: MC33389CDW and MC33389CDH and MC33389DDW
Reset threshold specification: A and C versions:
The reset threshold is defined per table "electrical parameter, V1 pin 5V. This concerns device MC33389ADW, ADH, CDW and CDH D version : The reset threshold for the D version is slightly higher than the A and C versions. Refer to device electrical parameter table, V1 pin 5V This concerns device reference MC33389DDW.
GND SHIFT DETECTION General When normally working in two-wire operating mode, the CAN transmission can afford some ground shift between different nodes without trouble. Nevertheless, in case of bus failure, the transceiver switches to single-wire operation, therefore working with less noise margin. The affordable ground shift is decreased in this case. The SBC is provided with a ground shift detection for diagnosis purpose. Four ground shift levels are selectable and the detection is stored in the GSLR register which is accessible via the SPI.
MC33389
For More Information On This Product, Go to: www.freescale.com MOTOROLA
17
Freescale Semiconductor, Inc. DEVICE DESCRIPTION
MC33389
Table 19. SBC Operation Mode Wake up capabilities (if enabled)
mode
V1 & V2 regulators, V3 switch V1: ON (unless failure condition V2: OFF V3: OFF V1: ON (75ms time out) V2: OFF V3: OFF
Reset pin
INT
Software Watchdog
CAN cell
Reset state
Low (duration 1ms) High. (Active low -go to reset state- if V1 under voltage occurs) High. (Active low -go to reset state- if W/ D or V1 under voltage occurs) same as Normal Mode - CAN - SPI - L0,L1,L2 - Cyclic sense - Forced Wake up none If enabled, signal failure condition or L0/ L1/L2 inputs state change. same as Normal Mode
TermVbat
Normal Request
Term Vbat
Freescale Semiconductor, Inc...
Normal
V1: ON V2: ON V3: ON or OFF V1: ON V2: OFF V3: ON or OFF V1: OFF V2: OFF V3 OFF or cyclic V1: OFF V2: OFF V3 OFF
Running
Tx/Rx, or Rx Only, or TermVbat
Standby
Running
TermVbat
Sleep
Low
Not active
Not Running
TermVbat + Wake up capability
Emerge ncy
Low
Not active
Not Running
TermVbat
MC33389
For More Information On This Product, MOTOROLA Go to: www.freescale.com
18
Freescale Semiconductor, Inc. DEVICE DESCRIPTION
Figure 20. State Machine
MC33389
PowerDown
SBC power up
Emergency
SPI: Emergency
W/D: timeout (4) OR V1 low (1)
Reset counter (1ms) expired AND V1 high (2)
Reset
V1 low (1)
Normal Request
(5 )
Standby
SPI: Emergency
Sl ee p
75ms time out expired
SPI: standby (7)
I:
Freescale Semiconductor, Inc...
MC33389 C version (9b)
ak W e up ) (8
Sleep
(MC33389 A version only: V1 low > 100ms) (9) (9a)
SPI:Sleep (5)
Normal
W/D: timeout (4) OR V1 low (1)
Legend: 1: "V1 low" means V1 below reset threshold 2: "V1 high" means V1 above reset threshold 3: "W/D: Trigger" means SCWR register write operation during Normal Request mode. 4: "W/D: time out" means SWCR register not written before W/D time out period expired, or W/D written in incorrect time window. In normal request mode time out is 75ms. 5: "SPI: Sleep" means SPI write command to MCR and MCVR registers, data sleep 6: "SPI: Normal" means SPI write command to MCR and MCVR registers, data normal 7: "SPI: Standby" means SPI write command to MCR and MCVR registers, data standby 8: "Wake up" means one of the following event occur: CAN wake up, Forced wake, Cyclic sense wake up, Direct Lx wake up or SPI CSB wake up. 9: "V1 low > 100ms" means V1 below reset threshold for more than 100ms. 9a: This condition leads to SBC in sleep mode only for the MC33389ADW (SO28 package). 9b: V1 low for > 100ms does not lead to sleep mode for the MC33389CDW (SO28WB package) and for the MC33389CDH (HSOP20 package).
MC33389
For More Information On This Product, MOTOROLA Go to: www.freescale.com
SPI: normal (6)
SP /D W rig :T 3) r( ge
19
MC33389
Freescale Semiconductor, Inc. SPI FUNCTIONNAL DESCRIPTION
General Description The SPI system is flexible enough to communicate directly with numerous standard peripherals and MCUs available from Motorola and other semiconductor manufacturers. SPI reduces the number of pins necessary for input/output on the MC33389. The SPI system of communication consists of the MCU transmitting, and in return, receiving one databit of information per clock cycle. Databits of information are simultaneously transmitted by one pin, Microcontroller Out Serial In (MOSI), and received by another pin, Microcontroller In Serial Out (MISO), of the MCU. Figure 21 below shows the basic SPI configuration between an MCU and one MC33389. The SPI serial operation is guaranteed to 2.0 MHz. Figure 21. SPI Interface With Microcontroller
address + R/W parity data
Data Transfer The data to and from the MC33389 are transferred in form of two bytes.The structure of the transferred information is the same for control the MC33389 and status reporting. The address field A5 to A0 (Bit15 to Bit10) contains the address of a control or status register in the MC33389. RW (Bit9 and Bit8) contains the read/write flag for the data field. The parity field is located at P3 to P0 (Bit7 to Bit4). The data field D3 to D0 (Bit3 to Bit0) is attached to the 2 byte data word, see figure below. Figure 22.
Bit15 Bit14 Bit13 Bit12 Bit11 Bit10 Bit9 Bit8 Bit7 Bit6 Bit5 Bit4 Bit3 Bit2 Bit1 Bit0
MISO
A5 A4 A3 A2 A1 A0 RW RW P3 P2 P1 P0 D3 D2 D1 D0
MOSI
MC68HCXX
MOSI MISO
MOSI MISO
MC33389
Freescale Semiconductor, Inc...
SCLK CSB
The SBC is accessible via the SPI interface in NormalRequest mode, Normal mode and Standby mode. In all other modes (Sleep mode, Emergency mode), the voltage supply for the microcontroller in permanently switched off and the SBC input logic for MISO, MOSI, CSB and SCLK isn't working (except SPI wake-up function in Sleep mode). Writing Data To write data in a SPI register, two one-byte transmissions have to performed. The first byte contains the address of the register (MSB first) and the read/write bits which have to be set to 1. The second byte contains the new data addressed by the previous byte (MSB first) and the parity information. The calculation of the parity field P3-P0 has to follow the equations below: P3 = D3 D0 (EX-OR) P2 = D3 D2 P1 = D2 D1 P0 = D1 D0 Note, that during the transmission of the two bytes the CSB pin remains 0. See figure23 hereafter. Figure 23.
HC08/12 SPI Data Register SBC SPI Data Register
Control and Status Reporting of the MC33389 The MCU is responsible for the control data transfer to the MC33389, while the MC33389 reports its status to the MCU. Summarized below are the major data for control and status reporting. - SPI initialization during start up - MC33389 control during operation - Watchdog triggering - Reading status registers of the MC33389 Control Data The control data are transferred from the MCU to the MC33389. A control word includes an address of a certain control register and the appropriate data. Basically the following data will be transferred (See the SPI Register Description section on page 21). - MC33389 mode control - Supply control - Forced wake-up timing - Cyclic sense control - Watchdog control - Transceiver control Status Data The status data are transmitted from the MC33389 to the MCU. After receiving a valid register address from the MCU, the MC33389 returns the appropriate status. Some of the major status data are listed below: - Current operation mode status - Wake-up sources - Reset status - Error status - Overtemperature status - Transceiver status
Bit7
Bit6
Bit5
Bit4
Bit3
Bit2
Bit1
Bit0
Bit15 Bit14 Bit13 Bit12 Bit11 Bit10 Bit9
Bit8
Bit7
Bit6
Bit5
Bit4
Bit3
Bit2
Bit1
Bit0
A5 A4 A3 A2 A1 A0
1
1
A5 A4 A3 A2 A1 A0 RW RW P3 P2 P1 P0 D3 D2 D1 D0
new address + R/W (1st byte)
old address + R/W
old parity
old data
P3 P2 P1 P0 D3 D2 D1 D0
new data + parity (2nd byte)
The SBC sends back the old address, R/W, parity, and data information from a previous transmission. This data contains no useful information (e.g. status).It shouldn't be used. In case of a wrong address field or parity mismatch, an interrupt will be issued and the SBC retains the old state. Reading Data To read data from a dedicated register two one-byte transmissions have to be performed. The first byte contains the address of the register (MSB first) and the read/write flag setting to 0. The second byte needn't to contain valid data,
MC33389
For More Information On This Product, Go to: www.freescale.com MOTOROLA
20
MC33389
Freescale Semiconductor, Inc. SPI FUNCTIONNAL DESCRIPTION
nevertheless the parity calculation has to performed to avoid an interrupt caused by a parity mismatch. During a read operation the SBC sends back the old address and R/W bits and the new data addressed by the first transmitted byte starting with P3 after the last valid read/write bit has been received. Note, that during the transmission of the two bytes the CSB pin remains 0. Figure below shows the content of the HC08/12 SPI DataRegister and the SBC SPI Data Register before the transmission. The new address and R/W bits are already in the SPI Data Register while the new data and parity bits are still in an appropriate microcontroller register or memory. This 2nd byte has to be loaded into the HC08/12 SPI Data Register after the first byte has been transmitted to the SBC. Figure 24. Address coding, based on increasing the Hamming distance, parity check and generation for data. For the address and the read/write bits only codes with a Hamming distance < 2 will be used. So, any single bit failure caused by disturbances will be recognized and handled. When one bit toggles in the address field during the transmission, no misbehaviour occurs. Additionally, validation registers are implemented to validate safety critical settings in the MC33389, e.g. the mode control register MCR and its validation register MCVR. To change the appropriate settings, both registers must have the same content to switch to another mode. To increase data integrity a parity check is used. A parity module in the MC33389 ascertains the parity of the data field and compares the result with the received parity. When the parity check is successfully passed, data will be written into the addressed registers. The parity bits P3 to P0 results from the logic equations below: P3 = D3 D0 P2 = D3 D2 P1 = D2 D1 P0 = D1 D0
new data + parity (2nd byte)
Freescale Semiconductor, Inc...
HC08/12 SPI Data Register
SBC SPI Data Register
Bit7
Bit6
Bit5
Bit4
Bit3
Bit2
Bit1
Bit0
Bit15 Bit14 Bit13 Bit12 Bit11 Bit10 Bit9
Bit8
Bit7
Bit6
Bit5
Bit4
Bit3
Bit2
Bit1
Bit0
(EX-OR)
A5 A4 A3 A2 A1 A0
0
0
A5 A4 A3 A2 A1 A0 RW RW P3 P2 P1 P0 D3 D2 D1 D0
new address + R/W (1st byte)
old address + R/W
old parity
old data
0
0
0
0
0
0
0
0
After transmission of the 1st byte the HC08/12 SPI read buffer contains the old address and R/W bits received from the SBC. An appropriate operation in the microcontroller loads the new data and parity into the HC08/12 SPI Data Register (2nd byte). In the SBC the internal logic loads P3-P0 and D3D0 to the location of Bit15 to Bit8 in the SBC SPI Data Register and will shift this data within the remaining eight clock cycles (Figure below 25). Figure 25.
HC08/12 SPI Data Register
SBC SPI Data Register
Bit7
Bit6
Bit5
Bit4
Bit3
Bit2
Bit1
Bit0
Bit15 Bit14 Bit13 Bit12 Bit11 Bit10 Bit9
Bit8
Bit7
Bit6
Bit5
Bit4
Bit3
Bit2
Bit1
Bit0
0
Bit7
0
Bit6
0
Bit5
0
Bit4
0
Bit3
0
Bit2
0
Bit1
0
Bit0
P3 P2 P1 P0 D3 D2 D1 D0 A5 A4 A3 A2 A1 A0
0
0
A5 A4 A3 A2 A1 A0 RW RW new parity new data new address + R/W
In case of error detection, the incoming data is not taken in the SBC and an error flag is set in an SPI register.CSB Pin The system MCU selects the MC33389 to be communicated with, through the use of the CSB pin. Whenever the pin is in logic low state, data can be transferred from the MCU to the MC33389 and vice versa. Clocked-in data from the MCU is transferred from the MC33389 shift register and latched into the addressed registers on the rising edge of the CSB signal if the read/write bit is set and the parity check was successful. The CSB pin controls the output driver of the serial output pin. Whenever the CSB pin goes to a logic low state, the MISO pin output driver is enabled allowing information to be transferred from the MC33389 to the MCU. To avoid any spurious data, it is essential that the high-to-low transition of the CSB signal occur only when SCLK is in a logic low state. SCLK Pin The system clock pin (SCLK) clocks the internal shift registers of the MC33389. The serial input pin (MOSI) accepts data into the input shift register on the falling edge of the SCLK signal while the serial output pin (MISO) shifts data information out of the shift register on the rising edge of the SCLK signal. False clocking of the shift register must be avoided to guarantee validity of data. It is essential that the SCLK pin be in a logic low state whenever chip select bar pin (CSB) makes any transition. For this reason, it is recommended though not necessary, that the SCLK pin be kept in a low logic state as long as the device is not accessed (CSB in logic high state). When CSB is in a logic high state, any signal at the SCLK and MOSI pin is ignored and MISO is tristated (high impedance). MOSI Pin This pin is for the input of serial instruction data. MOSI information is read in on the falling edge of SCLK. To program the MC33389 by setting appropriate programming registers, an sixteen bit serial stream of data is required to be entered
21
old address + R/W in HC08/12 SPI read buffer
addressed by the new address
After sixteen clock cycles the microcontrollers read buffer contains the new parity and data and is now ready for the next transmission (See figure hereafter 26) Figure 26. .
HC08/12 SPI Data Register
SBC SPI Data Register
Bit7
Bit6
Bit5
Bit4
Bit3
Bit2
Bit1
Bit0
Bit15 Bit14 Bit13 Bit12 Bit11 Bit10 Bit9
Bit8
Bit7
Bit6
Bit5
Bit4
Bit3
Bit2
Bit1
Bit0
A5 A4 A3 A2 A1 A0
Bit7 Bit6 Bit5 Bit4 Bit3 Bit2
0
Bit1
0
Bit0
A5 A4 A3 A2 A1 A0 RW RW 0
0
0
0
0
0
0
0
P3 P2 P1 P0 D3 D2 D1 D0 old address + R/W old parity old data
new parity + new data in HC08/12 SPI read buffer
Safety Concept Due the fact the SPI interface is an on-board interface without any data fault detection capabilities, the SPI interface of the MC33389 provides built-in fail save functions.
MC33389
For More Information On This Product, Go to: www.freescale.com MOTOROLA
MC33389
Freescale Semiconductor, Inc. SPI REGISTER DESCRIPTION
the MOSI pin starting with Bit15, followed by Bit14, Bit13, etc., to Bit0. For each fall of the SCLK signal, with CSB held in a logic low state, a databit is loaded into the shift register per the databit MOSI state.The shift register is full after sixteen bits of information have been entered. MISO Pin The serial output (MISO) pin is the tri-stateable output from the shift register. The MISO pin remains in a high impedance state until the CSB pin goes to a logic low state. The MISO pin changes state on the rising edge of SCLK and reads out on the falling edge of SCLK. The MOSI/MISO shifting of data follows a first-in-first-out protocol with both input and output words transferring the MSB first. Module Address Map, the module address map is shown in table below. Table 27. Module Address Map Address $000 $003 $005 $006 $009 $00A $00C $00F $011 $012 $014 $017 $018 $01B $01D $01E $021 $022 $024 Register Mode Control Register Mode Control Validation RegisterMCVR V3 control register Cyclic timing control register Software watchdog control register Ground shift level register Wake-up input control register Wake-up input status register Wake up input real time information Overtemperature status register Transceiver error status register for CANH Transceiver error status register for CANL Reset source register Voltage supply status register Interrupt mask control register 1 Interrupt mask control register 2 Interrupt source register 1 Interrupt source register 2 Transceiver control register Register Name MCR MCVR V3R CYTCR SWCR GSLR WUICR WUISR WUIRTI OTSR TESRH TESRL RSR VSSR IMR1 IMR2 ISR1 ISR2 TCR
Freescale Semiconductor, Inc...
MC33389
For More Information On This Product, Go to: www.freescale.com MOTOROLA
22
Freescale Semiconductor, Inc. SPI REGISTERS DESCRIPTION
Table 28. MCR --Mode Control Register MCR and MCVR registers are used to control the mode of the SBC. To change the operating mode of the SBC, both registers must have the same content. The order of writing the registers has to be taken into account. To set the SBC mode properly, MCR has to be written first then followed by MCVR write. A write operation sets the MCR and MCVR registers, a read operation perform a read out of the current status (MSR - mode status register). The Emergency mode is a regular mode. A reset of both MCR and MCVR registers occurs when RSTB = low and the SBC is set to NormalRequest mode. BIT 7 MCR $000 RESET Table 29. MCVR -- Mode Control Validating Register BIT 7 MCVR $003 RESET R W BIT 6 BIT 5 BIT 4 BIT 3 BIT 2 MSVR2 MCR2 0 BIT 1 MSVR1 MCR1 0 BIT 0 MSVR0 MCR0 0 R W BIT 6 BIT 5 BIT 4 BIT 3 BIT 2 MSR2 MCR2 0 BIT 1 MSR1 MCR1 0 BIT 0 MSR0 MCR0 0
MC33389
Freescale Semiconductor, Inc...
Table 30.
MC(V)R2
MC(V)R1
MC(V)R0
NormalRequest Normal Standby Sleep Emergency
MSR2
0 0 0 1 1
MSR1
0 0 1 0 1
MSR0
0 1 0 0 1
Automatically entered after reset 0 0 1 1 0 1 0 1 1 0 0 1
Table 31. V3R -- V3R Control Register This register is used to configure the state of V3 high side switch in normal and standby modes, and the V3 operation and the Forced wake up or the cyclic sense option for the sleep mode operation. BIT 7 V3R $005 RESET Table 32. R W BIT 6 BIT 5 BIT 4 BIT 3 WI2V3 1 BIT 2 FWU 0 BIT 1 CYS 0 BIT 0 V3R0 0
WI2V3
X X X
FWU
0 0 X
CYS
0 0 1
V3R0
0 1 X V3 off V3 on Cyclic Sense On
Comments
Only In Normal And Standby Mode Available
MC33389
For More Information On This Product, MOTOROLA Go to: www.freescale.com
23
Freescale Semiconductor, Inc. SPI REGISTERS DESCRIPTION
WI2V3
X 1
MC33389
FWU
1 X
CYS
0 X
V3R0
X X Forced Wake-up On wake-up inputs linked to V3
Comments
Only In Sleep Mode Available
Note: In low power modes cyclic sense has priority. A reset of the register occurs when RSTB = low. Table 33. CYTCR -- Cyclic Timing Control Register This register is used to select the cyclic sense or force wake up timing. BIT 7 CYTCR $006 RESET Table 34. R W BIT 6 BIT 5 BIT 4 BIT 3 BIT 2 CYTCR2 0 BIT 1 CYTCR1 0 BIT 0 CYTCR0 0
Freescale Semiconductor, Inc...
CYTCR2
0 0 0 0 1 1 1 1
CYTCR1
0 0 1 1 0 0 1 1
CYTCR0
0 1 0 1 0 1 0 1
Comments
Timer on, t1 (default) Timer on, t2 Timer on, t3 Timer on, t4 Timer on, t5 Timer on, t6 Timer on, t7 Timer on, t8
t(ms) typical
32 64 128 256 512 1024 2048 8192
A reset of the register occurs when RSTB = low Table 35. SWCR -- Software Watchdog Control Register This register is used to select the window watchdog time period. Open window of the selected period is only the second half of the selected period. BIT 7 SWCR $009 RESET R W BIT 6 BIT 5 BIT 4 BIT 3 BIT 2 SWCR2 0 BIT 1 SWCR1 0 BIT 0 SWCR0 0
Table 36.
SWCR2
0
SWCR1
0
SWCR0
0
Comments
Timer on, t1 (default)
t(ms) typical
5
MC33389
For More Information On This Product, MOTOROLA Go to: www.freescale.com
24
Freescale Semiconductor, Inc. SPI REGISTERS DESCRIPTION
SWCR2
0 0 0 1 1 1
MC33389
SWCR1
0 1 1 0 0 1
SWCR0
1 0 1 0 1 0
Comments
Timer on, t2 Timer on, t3 Timer on, t4 Timer on, t5 Timer on, t6 Timer on, t7
t(ms) typical
10 20 33 50 75 100
1 1 1 Timer on, t8 200 The SW watchdog is only running in Normal and Standby mode. A reset of this register occurs when RSTB = low Table 37. GSLR -- Ground Shift Level Register This register is used to monitor the ground shift of the vehicle network. r BIT 7 GSLR $00A RESET Table 38. R W 0 BIT 6 BIT 5 BIT 4 BIT 3 TXDOM BIT 2 SHIFT BIT 1 GSLR1 0 BIT 0 GSLR0 0
Freescale Semiconductor, Inc...
GSLR1
0 0 1 1
GSLR0
0 1 0 1
Typ GND Shift Level
0.7V -1.2V -1.7V -2.2V
SHIFT 1=ground shift above the threshold selected by GSLR1 and GSLR2. 0=no ground shift The SHIFT information is latched until a read operation of the GSLR register occurs. The GSLR register is set to 0 after power on reset. A reset of GSLR1 and GSLR0 occurs when RSTB = low. TXDOM 0 = no failure on TX 1 = TX permanent dominant Table 39. WUICR -- Wake-up Input Control Register/SPI And Bus Wake-up Status This register is used to configure the wake up level for the L0, L1 and L2 inputs. in read operation it reports the CAN wake up and SPI (csb) wake up events . BIT 7 WUICR $00C RESET R W 0 0 BIT 6 BIT 5 BIT 4 BIT 3 SPIWU BIT 2 BUSWU BIT 1 WUICR1 0 BIT 0 WUICR0 0
MC33389
For More Information On This Product, MOTOROLA Go to: www.freescale.com
25
Freescale Semiconductor, Inc. SPI REGISTERS DESCRIPTION
Table 40.
MC33389
WUICR1
0 0 1 1
WUICR0
0 1 0 1
Description
Wake-up inputs disabled Positive edge sensitive Negative edge sensitive Positive and negative sensitive Table 41.
Comments
SPIWU
0 X 1
BUSWU
0 1 X
Description
No wake-up events Wake-up event on CAN bus Wake-up event on SPI bus
Comments
Freescale Semiconductor, Inc...
The information in SPIWU and BUSWU is latched. Bits SPIWU and BUSWU will be reseted by a read operation of the WUICR register and are set to 0 after a power on reset. A reset of WUICR1 and WUICR0 occurs when RSTB = low. Table 42. WUISR -- Wake-up Input Status Register This register is used to read back the wake input (L0, L1 or L2) which has cause the SBC to wake up. BIT 7 WUISR $00F RESET Table 43. R W 0 0 0 BIT 6 BIT 5 BIT 4 BIT 3 BIT 2 WUISR2 BIT 1 WUISR1 BIT 0 WUISR0
WUISR2
0 X X 1
WUISR1
0 X 1 X
WUISR0
0 1 X X No Event on Wake-up Inputs Event on L0 Event on L1 Event on L2
Comments
In case of a wake-up event, the appropriate bit is set to 1. The bits will be reseted by a read operation of the register. After power on reset all bits are set to 0. Table 44. WUIRTI -- Wake-up Input Real-time Information This register reports the real time information on the state (high or low) of the L0, L1 and L2 inputs. BIT 7 WUIRTI $011 RESET The bits WUIRTI2-0 contain the real time logic value coming from the wake-up inputs (0 mean input below threshold, 1 mean input above threshold. Typical threshold is 3.5V). Table 45. OTSR -- Overtemperature Status Register R W BIT 6 BIT 5 BIT 4 BIT 3 BIT 2 WUIRTI2 BIT 1 WUIRTI1 BIT 0 WUIRTI0
MC33389
For More Information On This Product, MOTOROLA Go to: www.freescale.com
26
Freescale Semiconductor, Inc. SPI REGISTERS DESCRIPTION
This register is used to read back the overtemperature status for the V1 and V2 regulators. In write mode, it is used to turn V2 on after a V2 over temperature shutdown has occurred. BIT 7 OTSR $012 RESET R W 0 0 BIT 6 BIT 5 BIT 4 BIT 3 OPWV2 BIT 2 OPWV1 BIT 1 OTV2 OTV2C 0 0 BIT 0 OTV1
MC33389
Freescale Semiconductor, Inc...
OTV1: 1=V1 overtemperature shutdown, 0=V1 no overtemperature OTV2: 1=V2 overtemperature shutdown, 0=V2 no overtemperature OPWV1: 1=V1 overtemperature pre-warning, 0=V1 normal temperature OPWV2: 1=V2 overtemperature pre-warning, 0=V2 normal temperature In case of V1 or V2 overtemperature the appropriate voltage regulators are switched off automatically and the overtemperature flags are set (latched). The flags can be reseted by a read operation of the register OTSR. Once V2 has been switched off because of overtemp (OTV2=1) it can only be switched on again by forcing OTV2C=0 by a write operation. The V1 and V2 pre-warning flags are set as long as the first overtemperature exists. The flags disappear, when the temperature is below the threshold. An overtemperature of the V2 power supply will also switch off V3. After a power on reset all bits of the register are set to 0. Table 46. TESRH -- Transceiver Error Status Register For CANH Register used to report the CAN H failure status . BIT 7 TESRH $014 RESET Table 47. R W 0 0 0 0 BIT 6 BIT 5 BIT 4 BIT 3 TESRH3 BIT 2 TESRH2 BIT 1 TESRH1 BIT 0 TESRH0
TESRH3
0 0 X 0 1
TESRH2
0 X X 1 X
TESRH1
0 0 1 0 0
TESRH0
0 1 X X X No failure on CANH CANH wire interruption CANH short circuited to Vbat CANH short circuited to ground CANH short circuited to VCC
In case of CANH line failures, the appropriate bit(s) are set according to table 46. This information is latched. The register can be reseted by a read operation. After power on reset, all bits are set to 0. Table 48. TESRL -- Transceiver Error Status Register For CANL And Tx Register used to report the CANL and Tx permanent dominant failure status . BIT 7 TESRL $017 RESET R W 0 0 0 0 BIT 6 BIT 5 BIT 4 BIT 3 TESRL3 BIT 2 TESRL2 BIT 1 TESRL1 BIT 0 TESRL0
MC33389
For More Information On This Product, MOTOROLA Go to: www.freescale.com
27
Freescale Semiconductor, Inc. SPI REGISTERS DESCRIPTION
Table 49.
MC33389
TESRL3
0 0 0 X 1
TESRL2
0 X 1 X X
TESRL1
0 0 0 1 0
TESRL0
0 1 X X X No failure CANL wire interruption CANL short circuited to ground/ CANH mutually shorted to CANL CANL short circuited to Vbat CANL short circuited to Vdd
In case of CANL line failures, the appropriate bit(s) are set according to table 48. This information is latched and the register can be reseted by a read operation. After power on reset, all bits are set to 0. Table 50. RSR -- Reset Source Register This register reports the source of a reset that has occurred . BIT 7 RSR $018 RESET R W 1 0 1 BIT 6 BIT 5 BIT 4 BIT 3 BIT 2 RSR2 BIT 1 RSR1 BIT 0 RSR0
Freescale Semiconductor, Inc...
RSR0: 1 => VDD1 undervoltage occurred (RSR2=1 in this case), 0=> no undervoltage on VDD1 occurred RSR1: 1 =>SW watchdog reset occurred (RSR2=1 in this case), 0=>no SW watchdog reset occurred RSR2: 1 =>external reset occurred (RSR0=RSR1=0 in this case), 0=>no external reset occurred Events related to the bits in register RSR are latched. All bits can be reseted by a read operation of the register. After a power on reset, RSR2 and RSR0 are set to 1. Therefore the first read out of the register after power on delivers RSR[2:0] = [101]. Table 51. VSSR -- Voltage Supply Status Register Register used to monitor the status of the V2, V3 and Vbat voltage level. BIT 7 VSSR $01B RESET POR Table 52. R W 0 0 0 0 0 1 BIT 6 BIT 5 BIT 4 BIT 3 V3SR BIT 2 V2SR BIT 1 VBSR1 BIT 0 VBSR0
VBSR1
0 X 1
VBSR0
0 1 X No failure on Vbat Undervoltage (BatFail) Overvoltage (BatHigh)
V2SR: 1=V2 on, 0=V2 off V3SR: 1=V3 overtemperature, 0=V3 no overtemperature VBSR1 is a real time information and cannot be reseted. Bits V3SR, V2SR and VBSR0 are latched and can be reseted by a read operation of the register. Table 53. IMR1 -- Interrupt Mask Control Regis
MC33389
For More Information On This Product, MOTOROLA Go to: www.freescale.com
28
Freescale Semiconductor, Inc. SPI REGISTERS DESCRIPTION
The next two registers (IMR1 and IMR2) are used to mask the interrupt function. BIT 7 IMR1 $01D RESET R W BIT 6 BIT 5 BIT 4 BIT 3 HV 0 Table 54. IMR2 -- Interrupt Mask Control Register 2 BIT 7 IMR2 $01E RESET R W BIT 6 BIT 5 BIT 4 BIT 3 BIT 2 BUSF 0 BIT 1 SPIE 0 BIT 0 WU 0 BIT 2 HTPW 0 BIT 1 MTPW 0 BIT 0 BATU 0
MC33389
Freescale Semiconductor, Inc...
To enable the appropriate interrupt, the mask bit has to be set to 1. For disabling the interrupt the bit must be cleared to 0. After a power on reset or RSTB = low, the bits are cleared to 0. All interrupts are disabled. Explanation for the abbreviations: HV : Vbat high voltage HT : High temperature on V1 or V2 MTPW : Medium temperature pre-warning on V1 or V2 BATU: Battery undervoltage (BatFail) BUSF : CAN bus failure SPIE : SPI error WU : Wake-up Table 55. ISR1 -- Interrupt Source Register The next two registers (ISR1 and ISR2) are used to read the interrupt source. BIT 7 ISR $021 RESET R W 0 Table 56. ISR2 -- Interrupt Source Register 2 BIT 7 ISR $022 RESET R W 0 0 0 BIT 6 BIT 5 BIT 4 BIT 3 BIT 2 BUSF BIT 1 SPIE BIT 0 WU 0 0 0 BIT 6 BIT 5 BIT 4 BIT 3 HV BIT 2 HTPW BIT 1 MTPW BIT 0 BATU
All bits in registers ISR1 and ISR2 are copies of the appropriate bits in different SPI registers. For a faster read out, these bits are merged in ISR1 and ISR2. A reset cannot be done for registers ISR1 and ISR2.
Table 57. TCR--Transceiver Control/Status Register
MC33389
For More Information On This Product, MOTOROLA Go to: www.freescale.com
29
Freescale Semiconductor, Inc. SPI REGISTERS DESCRIPTION
This register is used to control the state of the CAN transceiver (CAN transceiver state is also dependant upon the SBC mode). When it is read, this register reports the CAN transceiver state and a CAN overtemperature condition . BIT 7 TCR $024 RESET Table 58. R W 0 BIT 6 BIT 5 BIT 4 BIT 3 TOT BIT 2 TSR2 TCR2 0 BIT 1 TSR1 TCR1 0 BIT 0 TSR0 TCR0 0
MC33389
TCR2
TCR1
0
TCR0
0 0 1 Standard/TermVbat Standard/RXOnly Standard/RXTX
TSR2
0 0 0
TSR1
0 1 1
TSR0
0 0 1
Freescale Semiconductor, Inc...
0
1 1
TOT 1 => Transceiver overtemperature 0 => normal temperature The MODE bit selects between the standard and extended physical layer mode. Any conditions forcing the transceiver to TermVbat lead to reset of TCR0 TCR1 bits. After power on reset all bits of the register are set to 0. The information TOT is latched. To reset TOT a read operation of TCR has to be performed. In case of RSTB = low the register content remains unchanged.
MC33389
For More Information On This Product, MOTOROLA Go to: www.freescale.com
30
MC33389
Freescale Semiconductor, Inc. APPLICATION
Sleep Mode Activation Once in sleep mode, the SBC turns off V1 and V2 regulator. Thus the micro controller can not run any mode. in order to have it run again, the SBC should enable and turn on V1, and this is achieve by an SBC wake up event. Several options are available to wake up the SBC and the application and have the micro controller in run mode. Some wake up are selectable, some are always active in sleep mode. - Wake up from CAN interface and wake up from SPI (CSB) are always active. - Wake up from L0/L1/L2 inputs, with and without cyclic sense and the FWU (Forced Wake Up) are selectable. The selection must be done while the SBC is in Normal or Standby mode, and prior to enter sleep mode. General Condition To Enter Sleep Mode In order to make sure the SBC enters the sleep mode, and in addition to the write into MCR and MCVR register, all previous wake up conditions must have been cleared. To clear a wake up condition requires that the appropriate register is read. After an SBC power up from "zero" (battery power up or cold start), the following registers must be read: - WUICR: possible wake up event report from CAN bus - RSR: report a V1 undervoltage - VSSR: reports a Vbat fail flag Once these read operation are done, the wake up conditions or flag are reset. The VSSR register bit VBSR0 can be used to determined if the SBC has experience a loss of battery voltage. After an SBC wake up from "sleep mode" the following registers indicate the wake up source and must be cleared in order to allow the SBC to enter sleep mode again: - WUICR: wake up event report for CAN or SPI buses. - WUISR: Wake up event report for the L0/L1/L2 inputs. - RSR: report a V1 undervoltage - VSSR: reports a Vbat fail flag - etc The paragraphs below describe the write operation to be done for the several sleep mode and wake up control options. In addition to FWU, cyclic sense and direct wake up, the CAN and SPI wake will always be activated. Sleep Mode With CAN And SPI Wake Up The enter sleep mode and activate the only the CAN or SPI wake up, no dedicated wake up condition must be done. In sleep mode the SBC has CAN and SPI wake up always active. To enter sleep mode in this case, while the SBC is in normal or standby mode: - Write to V3R register: data 0000 (this clear the bit WI2V3 which is set to1 after reset). - Write to MCR register: data SLEEP (100) - Write to MCVR register: data SLEEP (100) The SBC then enters sleep mode. Sleep Mode Enter With Forced Wake Up To enter sleep mode and activate the forced wake up the following register must be written: - Write to V3R register, data 0100), this set the FWU bit to 1. - Write to CYTCR register the desired wake up time. (This sets the time the SBC will stay in sleep mode). - Write to MCR register: data SLEEP (100) - Write to MCVR register: data SLEEP (100) The SBC then enters sleep mode. It will wake up after the time period selected in the CYTCR register. Sleep Mode Enter With Cyclic Sense To enter sleep mode and activate the cyclic sense wake up the following register must be written: - Write to V3R register, data 1010, this set the VI2V3 and CYS bits to 1. - Write to CYTCR register the desired cyclic sense period. (This sets the time the SBC will wait in sleep mode to turn on V3 and sense the Lx inputs). - Write to WUICR bits 0 and 1 to select the edge sensitivity for the Lx inputs. - Write to MCR register: data SLEEP (100) - Write to MCVR register: data SLEEP (100) The SBC then enters sleep mode. It will periodically turn on V3 and while V3 is on, sample the level of the Ls inputs. If any of the 3 Lx inputs is in the correct state for two consecutive samples, SBC will wake up. If not, it will stay in sleep mode. (refer to device description for detail). Sleep Mode Enter With Direct Lx Input Wake Up To enter sleep mode and activate the direct wake up from the Lx inputs, the following register must be written: - Write to V3R register, data 0000), this clear VI2V3 bit. - Write to WUICR bits 0 and 1 to select the edge sensitivity for the Lx inputs. - Write to MCR register: data SLEEP (100) - Write to MCVR register: data SLEEP (100) The SBC then enters sleep mode. It will wake up as soon as any of the Lx input read the correct state. Figure 59. Typical Sleep Current vs Temp and Batt 180
TYP SLEEP CURRENT (uA)
Freescale Semiconductor, Inc...
160
140 120 100 80 60 40 -50 16V 12V 6V -25 0 25 50 75 100 125 150 TEMPERATURE (C) Voltage
MC33389
For More Information On This Product, MOTOROLA Go to: www.freescale.com
31
Freescale Semiconductor, Inc. APPLICATION
Figure 60. Typical Application Schematic 1
Auxillary 5V C5 Ignition C1 Auxillary 12V Rp0 S0 Rs0 CL0 C2 Vbat V2 V1 V3 Reset L0 L1 L2 RH RL Rtl CANH CANL Rth Gnd INT CSB MISO MOSI SCK Tx Rx C3 C4 reset int C6
MC33389
Vdd
Rp1 S1
Rs1 CL1
SPI
CAN Gnd
Rp2 S2
Rs2 CL2
Freescale Semiconductor, Inc...
CAN bus
C1: 22uF C2: 100nF C3: 22uF esr <10 ohms C4: 100nF C5: 22uF esr < 10 ohms C6: 100nF
RH> 500 ohms RL> 500 ohms Rp0,1,2: 22k Rs0,1,2: 22 k CL0,1,2: 10nF
(V3 supplies switch pull up resistors. Sleep mode with cyclic sense).
Figure 61. Typical Application: V3 used as auxilaary ECU supply - Reset Duration Extension
Ignition switch Rp0 S0 C1 C2 Vbat
V3 Rs0 CL0
L0 L1 L2
V1 Gnd MC33389 Reset Cr Auxillary local 12V C3 C4
Vdd reset
Micro
Rp1 S1
Rs1 CL1
Rp2 S2
Rs2 CL2
(V3 supplies local switch 12V. Switch pull up resistors supplied from Switch battery line. Sleep mode without cyclic sense).
Reset duration extension
Figure 62. Typical Application Schematic
Auxillary 5V C5 C1 Ignition Auxillary 12V Rp0 S0 Rs0 CL0 V3 Reset L0 L1 L2 RH CAN bus # 1 RL Rtl CANH CANL Rth Gnd INT CSB MISO MOSI SCK Tx Rx SPI bus SPI reset int C2 Vbat V2 V1 C6
Vdd
CAN 1
(Wake up input linked to peripheral circuits: (ex: low speed CAN or LIN transceivers).
RH CAN bus # 2 RL +12V Vsup LIN bus 1k LIN MC33399 Gnd Vbat Rtl Inh
CAN 2 Vdd Tx/Rx
SCI
CANH MC33388 CANL Rth Gnd
Gnd Inh Tx/Rx
MC33389
For More Information On This Product, MOTOROLA Go to: www.freescale.com
32
MC33389
Freescale Semiconductor, Inc. APPLICATION
The SBC offers several capabilities to help user debug its application. - External bias of V1 and reset pin. - Turn off of the software watchdog in standby mode. - Special debug samples with software watchdog disable at power up (contact local Motorola representative). Debug And Program Download Into Flash Memory While the SBC is powered it enters normal request and expect within the 75ms time period of the NR mode an SPI tigger word (to enter normal mode and select the W/D time period). If this does not occurs, the SBC enter sleep mode and turn off V1. When the software is been debug, and when using development tools, it is not always easy to make sure these events properly. It is thus possible to externally power the V1 line with an external 5V supply, and to force the Reset pin to V1 or to and external 5V. These can be done at nominal voltage and temperature. By doing this, 5V is provided to the MCU Vdd and reset lines. Under this condition the SBC is not operational. However the reset pin is pulled low and is sinking 5mA to ground. This means that the external circuitry which drive reset must have a current capability higher than 5mA in order to drive the reset in high state. Disable Of Software Watchdog In Standby Mode The software watchdog can be disable in standby mode only. In order to disable it the following operation must be done: - Write to MCR register: data 011 (bit 2, bit 1, bit 0) - Write to MCVR register: data 011 (bit 2, bit 1, bit 0) Then the SBC enters the standby mode without software watchdog. However the V2 can not be turn on, and the CAN cell can not be used. Special Device Special components are available to make the debug even easier. These device has a special behaviour which at power up disable the watchdog. These device can be available through marketing only. Contact local Motorola representative for more detail. The behaviour of such special parts is as follow: - At power up (from Vbat =0V), the SBC enters "normal request mode" and stays in this mode permanently. V1 is on, V2 and V3 off, CAN in Term Vbat. For reference, with MC33389ADW and MC33389CDH units it stays there 75ms only and go to sleep if no SPI. - To get the SBC out on NormalRequest mode, write to SWCR register any valid data. This will enable the SBC to enter Normal mode, with V1 and V2 on. Once this is done, the SBC is controllable through SPI, in the same way as the normal versions. It can be turned in sleep. After wake up it enters NR mode (same as after power up described above). Only difference is that there is no need to refresh the software watchdog. Internally, the watchdog is running but when time out elapsed a reset is not generated. When application debug is advanced enough, it is possible to enable the W/D-reset function. To re activated the W/D effect, the VSSR register, bit VBSR0 (bat fail) must be read (cleared). When this is done, the W/D and 75ms timer of the NR mode effects are activated. However, due to re synchronisation, it is likely that at some point a reset is generated and that the SBC enter reset state then Normalrequest mode. When the SBC has had it W/D reactivated it is not possible to deactivated it again by software. The only way to do this is to remove battery supply voltage (Vbat < 3V for more than 200us) and then power up the SBC.
Freescale Semiconductor, Inc...
MC33389
For More Information On This Product, MOTOROLA Go to: www.freescale.com
33
Freescale Semiconductor, Inc.
MC33389
PIN ONE ID
h X 45 _ E2
1 20
E3
D e/2
D1
10
11
B
EXPOSED HEATSINK AREA
E1
10X
Freescale Semiconductor, Inc...
E bbb Y A A2
M
A CB H
DATUM PLANE
E4 BOTTOM VIEW
NOTES: 1. CONTROLLING DIMENSION: MILLIMETER. 2. DIMENSIONS AND TOLERANCES PER ASME Y14.5M, 1994. 3. DATUM PLANE -H- IS LOCATED AT BOTTOM OF LEAD AND IS COINCIDENT WITH THE LEAD WHERE THE LEAD EXITS THE PLASTIC BODY AT THE BOTTOM OF THE PARTING LINE. 4. DIMENSIONS D AND E1 DO NOT INCLUDE MOLD PROTRUSION. ALLOWABLE PROTRUSION IS 0.150 PER SIDE. DIMENSIONS D AND E1 DO INCLUDE MOLD MISMATCH AND ARE DETERMINED AT DATUM PLANE -H-. 5. DIMENSION b DOES NOT INCLUDE DAMBAR PROTRUSION. ALLOWABLE DAMBAR PROTRUSION SHALL BE 0.127 TOTAL IN EXCESS OF THE b DIMENSION AT MAXIMUM MATERIAL CONDITION. 6. DATUMS -A- AND -B- TO BE DETERMINED AT DATUM PLANE -H-. 7. DIMENSION D DOES NOT INCLUDE TIEBAR PROTRUSIONS. ALLOWABLE TIEBAR PROTRUSIONS ARE 0.150 PER SIDE. MILLIMETERS MIN MAX 3.000 3.400 0.100 0.300 2.900 3.100 0.00 0.100 15.800 16.000 11.700 12.600 0.900 1.100 13.950 14.450 10.900 11.100 2.500 2.700 6.400 7.200 2.700 2.900 0.840 1.100 0.350 BSC 0.400 0.520 0.400 0.482 0.230 0.320 0.230 0.280 1.270 BSC --- 1.100 q 0_ 8_ aaa 0.200 bbb 0.100 DIM A A1 A2 A3 D D1 D2 E E1 E2 E3 E4 L L1 b b1 c c1 e h
D2
18X
e
b1 c C
SEATING PLANE
GAUGE PLANE
SECTION W-W L1 W L (1.600) W A1 A3
bbb C
q
DETAIL Y
CASE 979C-02 ISSUE A DATE 07/22/98
MC33389
For More Information On This Product, MOTOROLA Go to: www.freescale.com
EEE CCC EEE CCC
b aaa
M
c1
CA
34
Freescale Semiconductor, Inc.
A D
28 15 M NOTES: 1. DIMENSIONS ARE IN MILLIMETERS. 2. INTERPRET DIMENSIONS AND TOLERANCES PER ASME Y14.5M, 1994. 3. DIMENSIONS D AND E DO NOT INCLUDE MOLD PROTRUSIONS. 4. MAXIMUM MOLD PROTRUSION 0.015 PER SIDE. 5. DIMENSION B DOES NOT INCLUDE DAMBAR PROTRUSION. ALLOWABLE DAMBAR PROTRUSION SHALL BE 0.13 TOTAL IN EXCESS OF B DIMENSION AT MAXIMUM MATERIAL CONDITION. MILLIMETERS MIN MAX 2.35 2.65 0.13 0.29 0.35 0.49 0.23 0.32 17.80 18.05 7.40 7.60 1.27 BSC 10.05 10.55 0.41 0.90 0_ 8_
MC33389
E
H
1 14 PIN 1 IDENT
B
0.25
M
B
L 0.10
SEATING PLANE
e B 0.025
M
C
DIM A A1 B C D E e H L
A1
A
Freescale Semiconductor, Inc...
C CA
S
q
q
B
S
CASE 751F-05 ISSUE F DATE 05/27/97
Motorola reserves the right to make changes without further notice to any products herein. Motorola makes no warranty, representation or guarantee regarding the suitability of its products for any particular purpose, nor does Motorola assume any liability arising out of the application or use of any product or circuit, and specifically disclaims any and all liability, including without limitation consequential or incidental damages. "Typical" parameters can and do vary in different applications and actual performance may vary over time. All operating parameters, including "Typicals", must be validated for each customer application by customer's technical experts. Motorola does not convey any license under its patent rights nor the rights of others. Motorola products are not designed, intended, or authorized for use as components in systems intended for surgical implant into the body, or other applications intended to support or sustain life, or for any other appl ication in which the failure of the Motorola product could create a situation where personal injury or death may occur. Should Buyer purchase or use Motorola products for any such unintended or unauthorized application, Buyer shall indemnify and hold Motorola and its officers, employees, subsidiaries, affiliates, and distributors harmless against all claims, costs, damages, and expenses, and reasonable attorney fees arising out of, directly or indirectly, any claim of personal injury or death associated with such unintended or unauthorized use, even if such claim alleges that Motorola was negligent regarding the design or manufacture of the part. Motorola and are registered trademarks of Motorola, Inc. Motorola, Inc. is an Equal Opportunity/Affirmative Action Employer. MOTOROLA and the Stylized M Logo are registered in the US Patent and Trademark Office. All other product or service names are the property of their respective owners. (c) Motorola, Inc. 2002
How to reach us: USA / EUROPE / Locations Not Listed: Motorola Literature Distribution; P.O. Box 5405, Denver, Colorado 80217. 1-303-675-2140 or 1-800-441-2447 Technical Information Center: 1-800-521-6274 HOME PAGE: http://www.motorola.com/semiconductors
JAPAN: Motorola Japan Ltd.; SPS, Technical Information Center, 3-20-1, Minami-Azabu, Minato-ku, Tokyo 106-8573 Japan. 81-3-344-3569 ASIA / PACIFIC: Motorola Semiconductors H.K. Ltd.; Silicon Harbour Centre, 2, Dai King Street, Tai Po Industrial Estate, Tai Po, N.T., Hong Kong. 852-26668334
For More Information On This Product, Go to: www.freescale.com
MC33389/D


▲Up To Search▲   

 
Price & Availability of MC33389CDH

All Rights Reserved © IC-ON-LINE 2003 - 2022  

[Add Bookmark] [Contact Us] [Link exchange] [Privacy policy]
Mirror Sites :  [www.datasheet.hk]   [www.maxim4u.com]  [www.ic-on-line.cn] [www.ic-on-line.com] [www.ic-on-line.net] [www.alldatasheet.com.cn] [www.gdcy.com]  [www.gdcy.net]


 . . . . .
  We use cookies to deliver the best possible web experience and assist with our advertising efforts. By continuing to use this site, you consent to the use of cookies. For more information on cookies, please take a look at our Privacy Policy. X